package com.sikaryofficial.workbench.domain.dto.req.order;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.sikaryofficial.common.core.annotation.SqlEscapeDeserializer;
import com.sikaryofficial.common.core.web.page.PageDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

/**
 * @author wuweihong
 * @desc 商品订单列表
 */

@Getter
@Setter
@ToString
@ApiModel(value = "商品订单列表Req入参对象", description = "商品订单列表Req入参对象")
public class OrderListReq  extends PageDomain {
    /**
     * 订单号
     */
    private String orderHeaderId;

    /**
     * 品牌名称
     */
    private String brandNo;

    /**
     * 产品名称
     */
    private String goodsName;

    /**
     * 搜索关键词：主/子订单号，品牌名称，产品名称
     */
    @ApiModelProperty(value = "brandNo-品牌 或 goodsName-产品名 或 主/子订单号",example = "SKE")
    @Length(max = 100, message = "keyword could not greater than 100 characters")
    @JsonDeserialize(using = SqlEscapeDeserializer.class)
    private String keyWord;

}
